package ip.dto;

import java.io.Serializable;
import java.util.Collection;

/***********************************************************************
 * Module:  Category.java
 * Author:  mojsilo
 * Purpose: Defines the Class Category
 ***********************************************************************/

public class CategoryDTO implements Serializable
{
	private static final long serialVersionUID = -6242874517651902827L;
	private long categoryId;
	private java.lang.String name;
	private Collection movies;
	/**
	 * @return the categoryId
	 */
	public long getCategoryId() {
		return categoryId;
	}
	
	/**
	 * @param categoryId the categoryId to set
	 */
	public void setCategoryId(long categoryId) {
		this.categoryId = categoryId;
	}
	/**
	 * @return the name
	 */
	public java.lang.String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(java.lang.String name) {
		this.name = name;
	}
	
	
	/**
	 * @return the movies
	 */
	public Collection getMovies() {
		return movies;
	}

	/**
	 * @param movies the movies to set
	 */
	public void setMovies(Collection movies) {
		this.movies = movies;
	}

	/**
	 * Constructs a <code>String</code> with all attributes
	 * in name = value format.
	 *
	 * @return a <code>String</code> representation 
	 * of this object.
	 */
	public String toString()
	{
	    final String TAB = "    ";
	    
	    String retValue = "";
	    
	    retValue = "Category ( "
	        + super.toString() + TAB
	        + "categoryId = " + this.categoryId + TAB
	        + "name = " + this.name + TAB
	        + "movies = " + this.movies + TAB
	        + " )";
	
	    return retValue;
	}

	
}